import request from '@/utils/request'

// 查询消耗品价格日志material_price_log列表 (分页)
export function selectPageMaterialPriceLog(query) {
  return request({
    url: '/material/materialPriceLog/selectPage',
    method: 'get',
    params: query
  })
}

// 查询消耗品价格日志material_price_log列表 (不分页)
export function listMaterialPriceLog(query) {
  return request({
    url: '/material/materialPriceLog/list',
    method: 'get',
    params: query
  })
}

// 查询消耗品价格日志material_price_log详细
export function getMaterialPriceLog(materialPriceLogId) {
  return request({
    url: '/material/materialPriceLog/' + materialPriceLogId,
    method: 'get'
  })
}

// 新增消耗品价格日志material_price_log
export function addMaterialPriceLog(data) {
  return request({
    url: '/material/materialPriceLog',
    method: 'post',
    data: data
  })
}

// 修改消耗品价格日志material_price_log
export function updateMaterialPriceLog(data) {
  return request({
    url: '/material/materialPriceLog',
    method: 'put',
    data: data
  })
}

// 删除消耗品价格日志material_price_log
export function delMaterialPriceLog(materialPriceLogId) {
  return request({
    url: '/material/materialPriceLog/' + materialPriceLogId,
    method: 'delete'
  })
}
